import React from 'react'
import { useDispatch,useSelector} from 'react-redux'
import {increment} from '../../store/slice/countSlice'



export default function Movie() {
  const count = useSelector(state => state.count.count)


    const dispatch = useDispatch()



  const getMovieHandle = ()=>{
    dispatch()
  }

  return (
    <div>
        <h1>我是Movie组件</h1>
        <p>我收到的Count组件的值是{count}</p>

        <button onClick={getMovieHandle}>获取电影的数据</button>
        <ul>

        </ul>
    </div>
  )
}
